import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)
const home = () => import('@/page/loginPage.vue')
export default new Router({
  routes: [
    {
      path: '/',
      component: home
    },
    {
      path: '/demo',
       name: 'demo',
      component: resolve => require(['@/page/demo.vue'], resolve)
    },


    {
      path: '/pageIndex',
      name: 'pageIndex',
      component: resolve => require(['@/page/index.vue'], resolve),

    },

    {
      path: '/catalog',
      name: 'catalog',
      component: resolve => require(['@/page/catalog.vue'], resolve)
    },
    {
      path: '/authorization',
      name: 'authorization',
      component: resolve => require(['@/page/authorization.vue'], resolve)
    },
    {
      path: '/batchData',
      name: 'batchData',
      component: resolve => require(['@/page/batchData.vue'], resolve)
    },
    {
      path: '/userSetting',
      name: 'userSetting',
      component: resolve => require(['@/page/userSetting.vue'], resolve)
    },
    {
      path: '/addPosi',
      name: 'addPosi',
      component: resolve => require(['@/page/addPosi.vue'], resolve)
    },
    {
      path: '/riskManagement',
      name: 'riskManagement',
      component: resolve => require(['@/page/riskManagement.vue'], resolve)
    },
    {
      path: '/query',
      name: 'query',
      component: resolve => require(['@/page/query.vue'], resolve)
    },
    {
      path: '/401',
      name: 'noPermission',
      component: resolve => require(['@/page/401.vue'], resolve)
    },
    {
      path: '/404',
      name: 'notFound',
      component: resolve => require(['@/page/404.vue'], resolve)
    },

    {
      path: '/systemSetting',
      name: 'systemSetting',
      component: resolve => require(['@/page/systemSetting.vue'], resolve)
    },
    {
      path: '/construct',
      name: 'construct',
      component: resolve => require(['@/page/construct.vue'], resolve)
    },
    {
      path: '/addUser',
      name: 'addUser',
      component: resolve => require(['@/page/addUser.vue'], resolve)
    },
    //内控评价
    {
      path: '/comment',
      name: 'comment',
      component: resolve => require(['@/page/commemnt.vue'], resolve)
    },
    {
      path: '/plan',
      name: 'plan',
      component: resolve => require(['@/page/plan.vue'], resolve)
    },
    {
      path: '/test',
      name: 'test',
      component: resolve => require(['@/page/test2.vue'], resolve)
    },
    {
      path: '/progressTest',
      name: 'progressTest',
      component: resolve => require(['@/page/progressTest.vue'], resolve)
    },
    {
      path: '/defineBaseData',
      name: 'defineBaseData',
      component: resolve => require(['@/page/defineBaseData.vue'], resolve)
    },
    {
      path: '/companyManagement',
      name: 'companyManagement',
      component: resolve => require(['@/page/companyManagement.vue'], resolve)
    },
    {
      path: '/posiManagement',
      name: 'posiManagement',
      component: resolve => require(['@/page/posiManagement.vue'], resolve),
    },
    {
      path: '/userManagement',
      name: 'userManagement',
      component: resolve => require(['@/page/userManagement.vue'], resolve),
    },
    {
      path: '/departManagement',
      name: 'departManagement',
      component: resolve => require(['@/page/departManagement.vue'], resolve),
    },
    {
      path: '/remind',
      name: 'remind',
      component: resolve => require(['@/page/remind.vue'], resolve),
    },
  //  综合查询路由
    {
      path: '/commentForm',
      name: 'commentForm',
      component: resolve => require(['@/page/commentForm.vue'], resolve),
    },
    {
      path: '/defectForm',
      name: 'defectForm',
      component: resolve => require(['@/page/defectForm.vue'], resolve),
    },
    {
      path: '/defectTotal',
      name: 'defectTotal',
      component: resolve => require(['@/page/defectTotal.vue'], resolve),
    },
    {
      path: '/defectFixed',
      name: 'defectFixed',
      component: resolve => require(['@/page/defectFixed.vue'], resolve),
    },
    {
      path: '/companyProgress',
      name: 'companyProgress',
      component: resolve => require(['@/page/companyProgress.vue'], resolve),
    },
    {
      path: '/qiyeProgress',
      name: 'qiyeProgress',
      component: resolve => require(['@/page/qiyeProgress.vue'], resolve),
    },
    {
      path: '/lcProgress',
      name: 'lcProgress',
      component: resolve => require(['@/page/lcProgress.vue'], resolve),
    },
    {
      path: '/sampling',
      name: 'sampling',
      component: resolve => require(['@/page/sampling.vue'], resolve),
    },
    {
      path: '/sceneInspect',
      name: 'sceneInspect',
      component: resolve => require(['@/page/sceneInspect.vue'], resolve),
    },
    {
      path: '/commentTalk',
      name: 'commentTalk',
      component: resolve => require(['@/page/commentTalk.vue'], resolve),
    },
    {
      path: '/cxcs',
      name: 'cxcs',
      component: resolve => require(['@/page/cxcs.vue'], resolve),
    },
    {
      path: '/defectAudit',
      name: 'defectAudit',
      component: resolve => require(['@/page/defectAudit.vue'], resolve),
    },
    {
      path: '/quantitativeEvaluation',
      name: 'quantitativeEvaluation',
      component: resolve => require(['@/page/quantitativeEvaluation.vue'], resolve),
    },
    {
      path: '/quotaManagement',
      name: 'quotaManagement',
      component: resolve => require(['@/page/quotaManagement.vue'], resolve),
    },
    {
      path: '/sample',
      name: 'sample',
      component: resolve => require(['@/page/sample.vue'], resolve),
    },
    //评价管理（编辑，审核，管理(√)）
    {
      path: '/evaluationManagement',
      name: 'evaluationManagement',
      component: resolve => require(['@/page/evaluationManagement.vue'], resolve),
    },
    // 编辑
    {
      path: '/editEvaluation',
      name: 'editEvaluation',
      component: resolve => require(['@/page/editEvaluation.vue'], resolve),
    },
    // 审核
    {
      path: '/examineEvaluation',
      name: 'examineEvaluation',
      component: resolve => require(['@/page/examineEvaluation.vue'], resolve),
    },
    //日志
    //日志分类
    {
      path: '/logList',
      name: 'logList',
      component: resolve => require(['@/page/logList.vue'], resolve),
    },
    //企业日志
    {
      path: '/companyLog',
      name: 'companyLog',
      component: resolve => require(['@/page/companyLog.vue'], resolve),
    },
    //部门日志
    {
      path: '/departLog',
      name: 'departLog',
      component: resolve => require(['@/page/departLog.vue'], resolve),
    },
    //流程目录日志
    {
      path: '/progressLog',
      name: 'progressLog',
      component: resolve => require(['@/page/progressLog.vue'], resolve),
    },
    {
      path:'/defineBaseDataLog',
      name:'defineBaseDataLog',
      component: resolve => require(['@/page/defineBaseDataLog.vue'], resolve),
    },
    //用户目录日志
    {
      path: '/usersLog',
      name: 'usersLog',
      component: resolve => require(['@/page/usersLog.vue'], resolve),
    },
    //用户目录日志 =>用户权限修改的日志
    {
      path: '/modifyUserAuthority',
      name: 'modifyUserAuthority',
      component: resolve => require(['@/page/modifyUserAuthority.vue'], resolve),
    },
    {
      path: '/cxcsTemplate',
      name: 'cxcsTemplate',
      component: resolve => require(['@/page/cxcsTemplate.vue'], resolve),
    },
    {
      path: '/addTemplate',
      name: 'addTemplate',
      component: resolve => require(['@/page/addTemplate.vue'], resolve),
    },
    //内控建设
    {
      path: '/controlBuild',
      component: resolve => require(['@/page/controlBuild.vue'], resolve),
      children: [
        {
          path: '/',
          component: resolve => require(['@/components/addclassification.vue'], resolve),
        },
        {
          path: 'classificationList',
          component:resolve => require(['@/components/classificationList.vue'], resolve),
        }
      ]
    },
  ]
})
